package com.example.order.service;

import com.example.common.api.ResultUtil;
import com.example.order.model.vo.OrderVO;
import com.example.order.model.vo.PreOrderVO;
import reactor.core.publisher.Mono;

import java.util.concurrent.ExecutionException;

public interface IOrderService {

    // 确认订单
    Mono<ResultUtil> confirmOrder(PreOrderVO preOrderVO);

    // 创建订单
    Mono<ResultUtil> createOrder(OrderVO orderVO) throws ExecutionException, InterruptedException;

}
